package com.FaceThingThird.InnterClass2;

public class Outer {
    private int age;
    public static String schoolName;
    //静态内部类
    public static class Innter{
        private String name;
        public static int a;
        public void test(){
            System.out.println(schoolName);
            //System.out.println(age);//静态内部类和静态方法一样不能访问外部类的实例成员

        }

        public String getName() {
            return name;
        }

        public void setName(String name) {

            this.name = name;
        }
    }
    public static void test2(){
        //System.out.println(age);//静态方法只能访问静态变量
        System.out.println(schoolName);
    }
}
